// import Vue from 'vue'
// import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
Vue.use(VueRouter)

const routes = [{
  path: '/gacha',
  name: 'Home',
  component: Home
},
{
  path: '/gacha/result',
  name: 'Result',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: resolve => require(['../views/Result.vue'], resolve)
  //   component: () => import( /* webpackChunkName: "about" */ '../views/Result.vue')
},
{
  path: '/gacha/pickshow',
  name: 'pickshow',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: resolve => require(['../views/PickShow.vue'], resolve)
},
{
  path: '/gacha/call',
  name: 'call',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: resolve => require(['../views/Call.vue'], resolve)
}
]

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
})

export default router